<?php

defined('IN_IA') or exit('Access Denied');
define('ROOT_PATH', IA_ROOT . '/addons/haoman_base/');
require_once IA_ROOT . '/addons/haoman_dpm/dpm.inc.php';
class Haoman_baseModuleSite extends WeModuleSite
{
	public function doMobileGetJs()
	{
		global $_GPC, $_W;
		if (ISZHENGBAN != 'fadfdsfdsffdafd') {
			return 'js';
		}
		$getjs = $_GPC['js'];
		if ($getjs == 'jqueryvedio') {
			$js = 'jquery.vedio.js';
		}
		if ($getjs == 'jquery191min') {
			$js = 'jquery-1.9.1.min.js';
		}
		if ($getjs == '3d') {
			$js = '3d.js';
		}
		if ($getjs == 'threemin') {
			$js = 'three.min.js';
		}
		ob_start();
		include ROOT_PATH . 'base/' . $js;
		header('content-type: application/x-javascript');
		$url = ob_get_clean();
		echo $url;
	}
	public function doMobileGetCss()
	{
		global $_GPC, $_W;
		if (ISZHENGBAN != 'fadfdsfdsffdafd') {
			return 'css';
		}
		$getCss = $_GPC['css'];
		if ($getCss == 'baping') {
			$css = 'baping.css';
		}
		if ($getCss == 'footer') {
			$css = 'footer.css';
		}
		ob_start();
		include ROOT_PATH . 'dpm/' . $css;
		header('content-type: text/css');
		$url = ob_get_clean();
		echo $url;
	}
}